#include "QShadowBitmap.h"
#include "QColor.h"
#include "cx_typedef.h"
#include "QGraphic.h"

EXPORT_C CQShadowBitmap::CQShadowBitmap()
{
	bpp = 0;
	m_Flag = 0x0102;		//ȫʵͼƬ
	m_pBlockBitmap = QNULL;
}


EXPORT_C CQShadowBitmap::~CQShadowBitmap()
{
	DeleteShadowBitmap();
}

EXPORT_C void CQShadowBitmap::Create(
QINT aWidth, QINT aHeight,
TQDisplayMode aColorType,
CQColor startColor,
CQColor endColor,
TQShadowDirection aDirection )
{		
	m_Width = aWidth;
	m_Height = aHeight;

	m_ColorType = aColorType;
	m_startColor = startColor;
	m_endColor = endColor;
	m_Direction = aDirection;
	


	m_pBlockBitmap = QNULL;
	

}


EXPORT_C void CQShadowBitmap::DeleteShadowBitmap()
{
	DELETE_SINGLEPTR(m_pBlockBitmap);
}

EXPORT_C  QVOID* CQShadowBitmap::GetShadowFbsBitmap()
{
	return m_pBlockBitmap;
}

QBYTE* CQShadowBitmap::GetData() const
{
	return (QBYTE*)1;
};